package com.atguigu.common.exception;

public enum ExceptionCodeEnum {

    ILLEGAL_ARGS_EXCEPTION(400, "参数不合法！"),
    DATA_NOT_EXIST_EXCEPTION(401, "此数据在数据库中不存在！"),
    UNKNOW_EXCEPTION(500,"服务器发生异常！");

    private int code;
    private String msg;

    ExceptionCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
